<tagLib name="html" />
<include file="../Public/header" />
<div id="wrap"> <include file="../Public/top" />
  <div id="content">
    <div class="mainarea">
      <div class="maininner">
        <div class="bdrcontent">
          <form action="__URL__/insert" method="post" enctype="multipart/form-data" id="phpform" onsubmit="return $.formValidator.pageIsValid('1')">
            <input type="hidden" name="id" value="{$vo.id}" />
            <table width="100%" cellpadding="0" cellspacing="0" class="formtable">
              <tr>
                <td width="100">栏目名称：</td>
                <td><input name="name" type="text" id="name" size="20"   /></td>
              </tr>
              <tr>
                <td valign="top">副标题：</td>
                <td><input name="name2" type="text" id="name2" size="20"   /></td>
              </tr>
              <tr>
                <td valign="top">模块：</td>
                <td><select name="moduleID" id="moduleID">
                  <option value="">请选择模块</option>
                  <volist name="moduleID" id="moduleID">
                    <option value="{$moduleID.id}">{$moduleID.cnName}</option>
                  </volist>
                </select></td>
              </tr>
              <tr>
                <td valign="top">分类信息：</td>
                <td><textarea name="info" cols="50" rows="4" id="info"></textarea></td>
              </tr>
              <tr>
                <td><label for="orderNum">排序：</label></td>
                <td>
                <input type="text" name="orderNum" id="orderNum" style="width:50px;"/></td>
              </tr>
                
              <tr>
                <td><label for="file1">栏目图片：</label></td>
                <td>
                <input type="file" name="file1" id="file1" /> 上次文件请按顺序1，2，3</td>
              </tr>
              <tr>
                <td><label for="file1">栏目图片：</label></td>
                <td>
                <input type="file" name="file2" id="file2" /></td>
              </tr>
              <tr>
                <td><label for="file1">栏目图片：</label></td>
                <td>
                <input type="file" name="file3" id="file3" /></td>
              </tr>
              <tr>
                <td><label for="status">状态：</label></td>
                <td><select name="status" id="status">
                  <option value="">请选择栏目状态</option>
                  <option value="1">显示</option>
                  <option value="0">隐藏</option>
                </select></td>
              </tr>
              <tr>
                <td></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td></td>
                <td><input type="submit" value="提交" class="button" /></td>
              </tr>
            </table>
          </form>
        </div>
        <br />
      </div>
    </div>
    <include file="../Public/menu" /> </div>
  <include file="../Public/footer" /> </div>
</body></html>

<script type="text/javascript">
    $(document).ready(function(){
		$.formValidator.initConfig({autotip:true,onerror:function(msg){alert(msg)}});
		$("#name").formValidator({onshow:"请输入栏目标题",onfocus:"标题长度最少为2个字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:4,max:50,onerror:"你输入的标题长度不正确,请确认"});
		$("#moduleID").formValidator({onshow:"请选择对应的模块名词",onfocus:"请选择",oncorrect:"恭喜你,通过了"}).inputValidator({min:1,onerror:"您忘记选择了？请确认"});
		$("#info").formValidator({onshow:"请输入栏目信息",onfocus:"栏目标题6-100个字符",oncorrect:"恭喜你,通过了"}).inputValidator({min:6,max:100,onerror:"你输入的信息长度非法,请确认"});
		$("#orderNum").formValidator({onshow:"请输入栏目的优先显示顺序",onfocus:"只能输入1-99之间的数字哦",oncorrect:"恭喜你,你输对了"}).inputValidator({min:1,max:99,type:"value",onerrormin:"你输入的值必须大于等于1",onerror:"排序必须在1-99之间，请确认"});
		$("#status").formValidator({onshow:"对于不显示的栏目可以自行调用，要记住本栏目的nid号",onfocus:"必须选择",oncorrect:"恭喜你,通过了"}).inputValidator({min:1,onerror:"您忘记选择了？,请确认"});
		
		
		
    });
</script>

